CVE-2024-42098
crypto: ecdh - explicitly zeroize private_key
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: ecdh - explicitly zeroize private_key private_key is overwritten with the key parameter passed in by the caller (if present), or alternatively a newly generated private key. However, it is possible that the caller provides a key (or the newly generated key) which is shorter than the previous key. In that scenario, some key material from the previous key would not be overwritten. The easiest solution is to explicitly zeroize the entire private_key array first. Note that this patch slightly changes the behavior of this function: previously, if the ecc_gen_privkey failed, the old private_key would remain. Now, the private_key is always zeroized. This behavior is consistent with the case where params.key is set and ecc_is_key_valid fails.
INFO
Published Date :
July 29, 2024, 6:15 p.m.
Last Modified :
Nov. 3, 2025, 10:17 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the affected kernel packages.
- Reboot the system after the update.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-42098.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-42098 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-42098
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-42098 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-42098 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html -
Initial Analysis by [email protected]
Oct. 07, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.8 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.97 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.15.162 Added Reference Type CVE: https://git.kernel.org/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d Types: Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8 Added Reference https://git.kernel.org/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9 Added Reference https://git.kernel.org/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975 Added Reference https://git.kernel.org/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df Added Reference https://git.kernel.org/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 29, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: crypto: ecdh - explicitly zeroize private_key private_key is overwritten with the key parameter passed in by the caller (if present), or alternatively a newly generated private key. However, it is possible that the caller provides a key (or the newly generated key) which is shorter than the previous key. In that scenario, some key material from the previous key would not be overwritten. The easiest solution is to explicitly zeroize the entire private_key array first. Note that this patch slightly changes the behavior of this function: previously, if the ecc_gen_privkey failed, the old private_key would remain. Now, the private_key is always zeroized. This behavior is consistent with the case where params.key is set and ecc_is_key_valid fails. Added Reference kernel.org https://git.kernel.org/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9 [No types assigned]